package cn.dugcrs.basic.query;

import lombok.Data;

@Data
/**
* @Description: 分页查询
* @Author: Gubcog
* @Version: 1.0
* @Date:  2022/4/19 18:45
*/
public class BaseQuery {

    private Integer currentPage = 1;

    private Integer pageSize = 5;

    // 高级查询字段
    private String keyword;

    public Integer getStart(){
        return (this.currentPage - 1) * this.pageSize;
    }

}
